package Service;

import DAO.BookDetailDao;
import DAO.BookRefTagDao;
import Entities.DoeBookEntity;

import java.util.List;

public class BookDetailService {
    private BookDetailDao bookDetailDao;
    private BookRefTagDao bookRefTagDao;

    public BookRefTagDao getBookRefTagDao() {
        return bookRefTagDao;
    }

    public void setBookRefTagDao(BookRefTagDao bookRefTagDao) {
        this.bookRefTagDao = bookRefTagDao;
    }

    public BookDetailDao getBookDetailDao() {
        return bookDetailDao;
    }

    public void setBookDetailDao(BookDetailDao bookDetailDao) {
        this.bookDetailDao = bookDetailDao;
    }

    public DoeBookEntity getBookByBookID(String book_id){
        return bookDetailDao.getBookByID(book_id);
    }

    public List<String> getRefTagsByBookID(String book_id){ return bookRefTagDao.getRefTags(book_id);}
}
